<?php

/*
	Class: Cts_Controller_Action_Admin

	About: Author
		Jaybill McCarthy

	About: License
		<http://communit.as/docs/license>

	About: See Also
		Zend_Controller_Action
*/
abstract class Cts_Controller_Action_Admin extends Cts_Controller_Action_Abstract {
	
	function init(){
	  
	    parent::init();
                
		$template_path = $this->_theme_locations['admin']['current_theme']['path']."/modules/".$this->getRequest()->getModuleName();
		
		$this->view->setScriptPath($template_path);
                $this->view->isAdminController = true;
                $this->view->admin_theme_path         = $this->_theme_locations['admin']['current_theme']['path'];
                $this->view->admin_theme_url          = $this->_theme_locations['admin']['current_theme']['url'];
                $this->view->admin_theme_global_path  = $this->_theme_locations['admin']['current_theme']['path']."/global";
                $this->view->admin_theme_controller_path  =  $this->_theme_locations['admin']['current_theme']['path'] . '/modules/'.$this->getRequest()->getModuleName(). "/" . $this->getRequest()->getControllerName();
                $this->view->admin_theme_module_path      =  $this->_theme_locations['admin']['current_theme']['path'] . '/modules/'.$this->getRequest()->getModuleName();

                $this->view->default_admin_theme_path         = $this->_theme_locations['admin']['default_theme']['path'];
                $this->view->default_admin_theme_url          = $this->_theme_locations['admin']['default_theme']['url'];
                $this->view->default_admin_theme_global_path  = $this->_theme_locations['admin']['default_theme']['path']."/global";
                $this->view->default_admin_theme_controller_path  =  $this->_theme_locations['admin']['default_theme']['path'] . '/modules/'.$this->getRequest()->getModuleName(). "/" . $this->getRequest()->getControllerName();
                $this->view->default_admin_theme_module_path      =  $this->_theme_locations['admin']['default_theme']['path'] . '/modules/'.$this->getRequest()->getModuleName();

		$this->view->current_path = $template_path . "/" . $this->getRequest()->getControllerName();                
		
	}
	
}